<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html;charset=utf-8;" />

<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/inform.css"/>

<script type="text/javascript" src="__PUBLIC__/js/jquery-1.11.0.min.js" ></script>

<script>
$(function(){
		  $(document).keypress(function(e) { 
          // 回车键事件 
		   if(e.which == 13) { 
				$('.mp_btn_sure').trigger("click");
		   } 
         }); 
$('.mp_btn_sure').click(function(){


			opsw = $('.opsw').val();
			if(!opsw){
				alert('请输入登陆密码');
				return false;
			}

		  $.ajax({
             type: "POST",
             url: "{:U('checkpw')}",
			 data: {opsw:opsw},
			 dataType: "text",
             success: function(data){

				if(data==1){
					window.location.href="{:U('question')}";
				}else if(data==2){
					message = "密码错误";
					alert(message);
				}
				 
									}
			})	

//$('.mp_reset_form').submit();
})

})
</script>

</head>

<body>
<div class="main_wrap">
<div class="zt" id="zt">
	<include file="Public/leftMenu" />
	
	<div class="yinfor">
		<div class="center_wrap">
			<div class="center_title"><h1>帐户安全</h1></div>
			<p class="lr_title">密码验证</p>

			<form name="reset_form" class="mp_reset_form" method="post">
				<table class="mp_menu1" style="width:100%">
					<tr ><td class="mp_password">密码:</td><td class="mp_text"><input type="password" name="opsw" class="opsw"/></td></tr>
					<tr ><td colspan=2 class="mp_sure" style="text-align:left;padding-left:170px;"><input type="button" class="mp_btn_sure" value="确   定"/></td></tr>
				</table>
			</form>
		
		</div>
	</div>

</div>
</div>



</body>

</html>